package com.yang.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * 用户表(NoteUser)实体类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:03
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true) //开启链式编写
public class NoteUser implements Serializable {
    private static final long serialVersionUID = 718577905828127873L;
    /**
    * 用户编号
    */
    private String userid;
    /**
    * 用户昵称

    */
    private String name;
    /**
    * 用户头像地址
    */
    private String userImg;
    /**
    * 用户账号
    */
    private String username;
    /**
    * 用户密码
    */
    private String password;
    /**
    * 用户手机号
    */
    private String userTel;
    /**
    * 用户邮箱
    */
    private String userEmail;
    /**
    * 角色编号

    */
    private String roleId;
    /**
     * 角色对象
     */
    private NoteRole noteRole;
    /**
     * 用户角色
     */
    private String userRole;
    /**
     * 用户短信类
     */
    private UserNoteInfo userNoteInfo;
}